home *** CD-ROM | disk | FTP | other *** search
- global Sec, i, tl, tipo, texto, ListaCP, OpcionesCat, OpcionesSubcat, OpcionesProg, spIdioma, spFormato, colorOpciones
-
- on prepareFrame
- Archivo = the pathName & "tutoriales\" & "info.txt"
- importFileInto(member("info"), Archivo)
- InicializarGlobales()
- Sec = 0
- texto = member("info").text
- lineas = texto.lines.count
- repeat with i = 1 to lineas
- tl = texto.line[i]
- case tl.word[1] of
- "*":
- tipo = "S"
- AgregarElemento()
- append(OpcionesCat, Sec)
- "#":
- tipo = "C"
- AgregarElemento()
- "-":
- tipo = "P"
- AgregarElemento()
- end case
- end repeat
- MenuCategorias()
- updateStage()
- end
-
- on AgregarElemento
- Sec = Sec + 1
- ListaCP[#tipo][Sec] = tipo
- put ListaCP
- ListaCP[#linea][Sec] = i
- delete tl.word[1]
- ListaCP[#titulo][Sec] = tl
- end
-
- on MenuCategorias
- s = EMPTY
- repeat with r = 1 to OpcionesCat.count
- s = s & ListaCP[#titulo][OpcionesCat[r]] & RETURN
- end repeat
- member("Categorias").text = s
- end
-